using System;
using System.Collections.Generic;
using System.Text;

namespace ICeFramework.Web.Common.Caching
{
    public static class Cache
    {
        private static object lockObj = new object();
        private static ICache _cache;
        #region public static ICache Current
        /// <summary>
        /// Gets the Current of the Cache
        /// </summary>
        /// <value></value>
        public static ICache Current
        {
            get
            {
                if (_cache == null)
                {
                    lock (lockObj)
                    {
                        _cache = CacheFactory.CreateCache();
                    }
                }
                return _cache;
            }
        }
        #endregion
    }
}
